﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TreeMap
{
	static class Helper
	{
		public static void HandleException(Exception ex, string msg, string caption)
		{
			MessageBox.Show(msg + ex.Message, caption, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
			Console.Error.WriteLine(ex.ToString());
		}
	}
}
